package com.yang.entity.commodityDetail;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.yang.entity.Commodity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.ArrayList;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class Detail {

    /**
     * 商品详情页数据实体类
     */
    private Commodity commodity; // 商品信息
    private List<Specs> specs; // 商品规格
    private List<String> detailImages; // 商品详细情况中的图片url
    public List<Skus> skus = new ArrayList<>(); // 商品SKU信息
    public List<String> images = new ArrayList<>(); // 商品详情页轮播图
}
